package com.qb.plugin;

import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;

/**
 * File: null.java
 * Creator: dingpwen
 * Company: shiwei
 * Created on: 2021/7/2 15:45
 * Email: dingpwen@gmail.com
 * Details: TODO
 */
class CommonClassVisitor extends ClassVisitor {
    public CommonClassVisitor(ClassVisitor classVisitor) {
        super(Opcodes.ASM7, classVisitor);
    }

    @Override
    public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) {
        //return super.visitMethod(access, name, descriptor, signature, exceptions);
        MethodVisitor mv = cv.visitMethod(access, name, descriptor, signature, exceptions);
        return mv == null ? null : new CommonMethodVisitor(mv);
    }
}
